package com.smarkparking.tool;

/**
 * @author 刘涛
 * @create 2021/11/19 15:48
 * 自定义规则生成UUID
 */
public class UUID {
    /**
     * 根据特定字符生成uuid
     *
     * @param ID 字符
     * @return uuid
     */
    public static String UUIDById(String ID) {
        java.util.UUID id = java.util.UUID.randomUUID();
        String s = id.toString();
        int i = ID.hashCode();
        String UUID = i + s;
        return UUID;
    }
}
